<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title></title>
    <link rel="stylesheet" href="images/table.css" type="text/css"></link>
  	<script type="text/javascript" src="js/jquery-1.8.2.js"></script> 
    <script type="text/javascript" src="js/tableScoll.js"></script>
    <script type="text/javascript" src="js/common.js"></script> 
</head>
  <body>
  <form action="./menuService.do?servlet=queryMenu"  method="post" id="tableForm">
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">商户查询</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	      <tr>
	        <td colspan="2" valign="top">&nbsp;</td>
	        <td>&nbsp;</td>
	        <td valign="top">&nbsp;</td>
	      </tr>
	      <tr>
	        <td colspan="2" valign="top">
	      		<!--  控件按钮栏-->
		         <TABLE class=main_tab id=mainTable cellSpacing=0 cellPadding=0 width=100% border=0>
		             <tr>
		                <td>商户编号：<input type="text" id=_cparam  name="stMerchantNumber"  /></td>
		                <td>商户名称：<input type="text" id="_cparam"  name="stMerchantName"  /></td>
		               	<td>商户等级：<input type="text" id="_cparam"  name="stMerchantLevel"  /></td>
		             </tr> 	
		             <tr>
		               	<td> 身份/城市：<input type="text" id="_cparam"  name="stAreaType"  /></td>
		               	<td>城市名称：<input type="text" id="_cparam"  name="stAreaName"  /></td>
		               	<td>地区：<input type="text" id=_cparam  name="stAreaPart"  /></td>
		             </tr>
					<tr>
		                <td>
		                     <br>
		                 	 <input type="button" name="_ctableSearch"  id="_ctableSearch"  value="商户信息查询"/>
		                 	 <input type="button" name="merchantModify"  id="merchantModify" value="商户信息修改"/>
		                </td>
		             </tr>
			      </TABLE>
		     </td>
		     <td>&nbsp;</td>
		  </tr>
		  <tr>
	        <td height="40" colspan="4">
	        	<table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
			          <tr>
			            <td></td>
			          </tr>
	        	</table>
	        </td>
		  </tr>
		  <tr>
		  	 <td colspan="30">
		     <!--  table栏-->
		     	<c:set var="resultList" scope="request" value="${result}"/>
		        <c:choose> 
		            <c:when test="${empty resultList}"> 
		              	 <h2> 查询结果为空 </h2>
					</c:when>   
  
					<c:when test="${not empty resultList}"> 
					  <div style="overflow:scroll; height:300px; width:900px;">
					    <table class="tab_data"  id="dataTable" >  
						       <tr id="title">
						            <th id="stMerchantId"  class="_cparamTitle">序号</th>
							       	<th><input type="checkbox"  id="_checkall"  value=""/></th>
							       	<th id="stMerchantNumber" class="_cparamTitle"> 商户编号</th>
									<th id="stLink" class="_cparamTitle">游览</th>
									<th id="stMerchantName" class="_cparamTitle">商户名称</th>
									<th id="stAreaType" class="_cparamTitle">身份/城市</th>
									<th id="stAreaName" class="_cparamTitle">城市名称</th>
									<th id="stAreaPart" class="_cparamTitle"> 地区</th>
									<th id="stMerchantAddress" class="_cparamTitle">商户地址</th>
									<th id="stMerchantPostCode" class="_cparamTitle">商户邮编</th>
									<th id="stMerchantLevel" class="_cparamTitle">商户等级</th>
									<th id="stSub" class="_cparamTitle">商户性质</th>
						       </tr>
					 	   <c:forEach items="${resultList}" var="bean"  varStatus="status">
						 		<tr class="dataArea">
					 		        <td>${status.count}</td>
					 		        <td><input type="checkbox"  name="_ckId"  id="_ckId"  value="${bean.stMerchantId}" /></td>
									<td>${bean.stMerchantNumber}</td>
									<td>${bean.stLink}</td>
									<td>${bean.stMerchantName}</td>
									<td>${bean.stAreaType}</td>
									<td>${bean.stAreaName}</td>
									<td>${bean.stAreaPart}</td>
									<td>${bean.stMerchantAddress}</td>
									<td>${bean.stMerchantPostCode}</td>
									<td>${bean.stMerchantLevel}</td>
									<td>${bean.stSub}</td>
						 	    </tr>
					 		</c:forEach>
					 	</table>
					 	</div>
					</c:when>
		        </c:choose>
		        </td>
		  </tr>
		  <!-- 翻页工具  -->
		  <tr>
		     <td colspan="8">
		     	  <input type="button" name="firstPage" id="_cfirstPage"  value="第一页"/>
		          <input type="button" name="precPage" id="_cprecPage"  value="上一页"/>
		          <input type="button" name="nextPage" id="_cnextPage"  value="下一页"/>
		          <input type="button" name="lastPage" id="_clastPage"  value="最后一页"/>
		                 行数:<input type="text" name="pageNumber"  id="_cpageNumber"  value="20"  style="width:25px;border:0px;"   />
		          <input type="text" name="page"  id="_cpage"  style="width:15px;border:0px;"  value="1"   readOnly/>/
		          <input type="text" name="pageCount"  id="_cpageCount"  style="width:15px;border:0px;"  value="<%=request.getAttribute("pageCount") == null ? 1:request.getAttribute("pageCount")%>"  readOnly/>页
		          
		          <!--翻页后台路径 -->
		          <input type="hidden" name="pageUrl" id="_cpageUrl" value="./merchantScoll.action" />
		          <input type="hidden" name="chosPart" id="_cchosPart" value="1" />
		     </td>
		  </tr>
	      <tr>
	        <td height="40" colspan="4">
	        	<table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
			          <tr>
			            <td></td>
			          </tr>
	        	</table>
	        </td>
	      </tr>
	      <tr>
	        <td width="2%">&nbsp;</td>
	        <td width="51%" class="left_txt"><img src="images/icon-mail2.gif" width="16" height="11"> <br>
	              <img src="images/icon-phone.gif" width="17" height="14"> </td>
	        <td>&nbsp;</td>
	        <td>&nbsp;</td>
	      </tr>
	</table>
    </td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
</tr>
<tr>
   <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
   <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
   <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
</tr>
</table>
</form>
  </body>
</html>
